﻿@model CharacterCreation.Business.ViewModels.VMCharacterSkill

@{
    ViewBag.Title = "AddSkill";
}

<h2>AddSkill</h2>


@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
            
        @Html.HiddenFor(m => m.Id)
        @Html.HiddenFor(m => m.CharacterId)

        <dl>
            <hr />

            <dt>@Html.LabelFor(model => model.Name)</dt>
            <dd>@Html.EditorFor(model => model.Name)</dd>
            
            <hr />

            <dt>@Html.LabelFor(model => model.Description)</dt>
            <dd>@Html.EditorFor(model => model.Description)</dd>
            
            <hr />
            
            <dt>@Html.LabelFor(model => model.XPCost)</dt>
            <dd>@Html.EditorFor(model => model.XPCost)</dd>

            <hr />
            
            <dt>@Html.LabelFor(model => model.Category)</dt>
            <dd>@Html.EnumDropDownListFor(model => model.Category)</dd>

            <hr />
            
            <dt>Strength</dt>
            <dd>@Html.EditorFor(model => model.Strength)</dd>
            <hr />
            <dt>Dexterity</dt>
            <dd>@Html.EditorFor(model => model.Dexterity)</dd>
            <hr />
            <dt>Fighting</dt>
            <dd>@Html.EditorFor(model => model.Fighting)</dd>
            <hr />
            <dt>Constitution</dt>
            <dd>@Html.EditorFor(model => model.Constitution)</dd>
            <hr />
            <dt>Perception</dt>
            <dd>@Html.EditorFor(model => model.Perception)</dd>
            <hr />
            <dt>Intelligence</dt>
            <dd>@Html.EditorFor(model => model.Intelligence)</dd>
            <hr />
            <dt>WillPower</dt>
            <dd>@Html.EditorFor(model => model.WillPower)</dd>
            <hr />
            <dt>Charisma</dt>
            <dd>@Html.EditorFor(model => model.Charisma)</dd>

            
        </dl>
        
        <input type="submit" value="Save" class="button" />
        @Html.ActionLink("Return to character", "Details", new { id = ViewBag.CharacterId }, new { @class = "button" })
    </fieldset>
}


@Html.ActionLink("Return to character", "Details", new { id = Model.CharacterId }, new { @class = "button" })
